home *** CD-ROM | disk | FTP | other *** search
- /* param line */
-
- options results
-
- address 'rexx_TVPaint'
-
-
- Parse ARG m x1 y1 x2 y2 b
-
- if(y2>y1) then
- do
- e=x1
- x1=x2
- x2=e
-
- e=y1
- y1=y2
- y2=e
- end
-
-
- /* initialisation */
- a.1=x1
- b.1=y1
- c.1=x2
- d.1=y2
- tv_line a.1 b.1 c.1 d.1
- segpos=1
- segnum=1
- new=2
-
- /* nombre d'itérations */
- loop=6
-
- /* nombre de nouveaux segments à chaque loop */
- gene=2
-
- prog=10
-
-
- do i=1 to loop
-
- say "loop" i "**************"
-
- do j=0 to segnum-1
-
- q=segpos+j
-
- /* ici on génère ce qui doit l'être pour chaque segments*/
- do k=0 to gene-1
-
- a.new=c.q
- b.new=d.q
-
- e=c.q
- e=e+random(0,100,time('S'))-50
- c.new=e
-
- e=d.q
- e=e-prog-random(0,30,time('S'))-10
- d.new=e
-
- say a.new b.new c.new d.new
- tv_line a.new b.new c.new d.new
-
- new=new+1
- end
-
-
- end
- segpos=segpos+segnum
- segnum=segnum*gene
- prog=10
-
- end
-
-